package com.idp.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.idp.demo.dto.GoodsDto;
import com.idp.demo.dto.GoodsSearchDto;
import com.idp.demo.entity.GoodsEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 商品Mapper
 * @author： King
 */
@Mapper
public interface GoodsMapper extends BaseMapper<GoodsEntity> {

    /**
     * 条件查询
     * @param goodsSearchDto
     * @return
     */
	List<GoodsDto> getList(GoodsSearchDto goodsSearchDto);

    /**
     * 通过id查询
     * @param id
     * @return
     */
	GoodsDto getById(String id);

}
